#pragma once

#include "GraphicsPlatform.h"
#include "OpenGLPlotter.h"

class COpenGL : public CGraphicsPlatform
{
public:
	COpenGL();
	virtual ~COpenGL();

	virtual bool					OnInitialize(CView* pView);
	virtual void					OnRender();
	virtual void					OnSize(int cx, int cy);

	virtual void					Translate2DTo3D(int iPtX, int iPtY, CVec& pt);
	virtual void					Translate3DTo2D(const CVec& pt, int& iPtX, int& iPtY);

protected:
	void							SetOpenGLState();
	void							SetFrustum();
	bool							SetDCPixelFormat(HDC hDC, DWORD dwFlags);
};
